﻿using Microsoft.EntityFrameworkCore;

namespace WebApi.Models;

/// <summary>
/// TodoContext class.
/// </summary>
public class TodoContext:DbContext
{
    /// <summary>
    /// Constructor for TodoContext class.
    /// </summary>
    /// <param name="options"></param>
    public TodoContext(DbContextOptions<TodoContext> options):base(options)
    {
        
    }

    /// <summary>
    /// TodoItems DbSet.
    /// </summary>
    public DbSet<TodoItem> TodoItems { get; set; }

    /// <summary>
    /// Contacts DbSet.
    /// </summary>
    public DbSet<TestJsonPatch> JsonPatches { get; set; }

}
